/*    */ package com.zimbra.cs.mime;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import java.io.InputStream;
/*    */ import java.io.OutputStream;
/*    */ import javax.activation.DataSource;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ParsedMessageDataSource
/*    */   implements DataSource
/*    */ {
/*    */   private ParsedMessage mParsedMessage;
/*    */   
/*    */   public ParsedMessageDataSource(ParsedMessage pm)
/*    */   {
/* 33 */     if (pm == null) {
/* 34 */       throw new NullPointerException();
/*    */     }
/* 36 */     this.mParsedMessage = pm;
/*    */   }
/*    */   
/*    */   public String getContentType() {
/* 40 */     return "message/rfc822";
/*    */   }
/*    */   
/*    */   public InputStream getInputStream() throws IOException {
/* 44 */     return this.mParsedMessage.getRawInputStream();
/*    */   }
/*    */   
/*    */   public String getName() {
/* 48 */     return this.mParsedMessage.getSubject();
/*    */   }
/*    */   
/*    */   public OutputStream getOutputStream() throws IOException {
/* 52 */     throw new IOException("not supported");
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mime/ParsedMessageDataSource.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */